﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace T4MVCGen.Core
{
    public class Options
    {
        public string outputDirectory { get; private set; }
        public string connectionString { get; private set; }
        public bool createMultipleFiles { get; private set; }
        public string projectName { get; private set; }
        public string targetNamespace { get; private set; }
        public string daoSuffix { get; private set; }
        public string dtoSuffix { get; private set; }
        public string[] tableNames { get; private set; }
        public int databaseType { get; set; }

        public Options(string outputDirectory,int databaseType, string connectionString,string[] tableNames, bool createMultipleFiles, string projectName, string targetNamespace, string daoSuffix, string dtoSuffix)
        {
            this.outputDirectory = outputDirectory;
            this.databaseType = databaseType;
            this.connectionString = connectionString;
            this.tableNames = tableNames;
            this.createMultipleFiles=createMultipleFiles;
            this.projectName=projectName;
            this.targetNamespace=targetNamespace;
            this.daoSuffix=daoSuffix;
            this.dtoSuffix = dtoSuffix;
        }

        public Options(string connectionString, int databaseType)
        {
            this.connectionString = connectionString;
            this.databaseType = databaseType;
        }
    }
}
